﻿@using Gluten.Models
@model Gluten.Models.Label
@{
    ViewBag.Title = "Label";
    Layout = "~/Views/Admin/_Layout.cshtml";
}
<h2>
    Logo example:</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="container_12">
    <div class="grid_12">
        <div class="orange_div">
            <img src="@Url.Content("~/"+Model.Image)" alt="central_image1" id="img_div" />
            <p class="big_white_with_shadow" id="BigTextView">@Model.BigText</p>
            <div class="black_div">
                <div class="gray">
                    <p id="GrayTextView">@Model.GrayText</p>
                </div>
                <div class="orange">
                    <a href="@Model.LinkUrl" class="orange_link" id="LogoLink">@Model.LinkText</a></div>
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
    <fieldset>
        <div class="grid_5 logo_edit">
            @using (Html.BeginForm("Label", "Admin", FormMethod.Post))
            {
                @Html.ValidationSummary(true)
                @Html.HiddenFor(model => model.Id)
                @Html.HiddenFor(model => model.Image)
                <div class="editor-label">
                    @Html.LabelFor(model => model.BigText)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.BigText)
                    @Html.ValidationMessageFor(model => model.BigText)
                </div>
                <div class="editor-label">
                    @Html.LabelFor(model => model.GrayText)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.GrayText)
                    @Html.ValidationMessageFor(model => model.GrayText)
                </div>
                <div class="editor-label">
                    @Html.LabelFor(model => model.LinkText)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.LinkText)
                    @Html.ValidationMessageFor(model => model.LinkText)
                </div>
                <div class="editor-label">
                    @Html.LabelFor(model => model.LinkUrl)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.LinkUrl)
                    @Html.ValidationMessageFor(model => model.LinkUrl)
                </div>
                <p>
                    <input type="submit" value="Save" />
                </p>
            }
        </div>
        <div class="grid_7">
            <strong><a href="@Url.Action("ChangeImage")/@Model.Id" onclick="sendMenu(@Url.Action("Label"))">Change Image</a> →</strong>
        </div>
    </fieldset>
</div>